#include <stdio.h>
#include <stdlib.h>
#include "linkstack.h"

int main(int argc, char *argv[]) 
{
	linkstack s;
	s = stack_create(); 
	if (s == NULL)
        return -1;
    
    stack_push(s, 10);
    stack_push(s, 20);
    stack_push(s, 30);
    stack_push(s, 40);
/*    
    while(stack_empty(s) == 0)
    {
    	printf("pop:%d\n",stack_pop(s));
	}
*/	
	s = stack_free(s);
	
	return 0;
}
